package cc.eddic.pratice.programmingparadigms.emp01array;

import cc.eddic.pratice.programmingparadigms.Employee;
import cc.eddic.pratice.programmingparadigms.Result;
import cc.eddic.pratice.programmingparadigms.emp02list.EmployeeList;
import cc.eddic.pratice.programmingparadigms.emp02list.ResultList;

/**
 * 员工信息统计服务
 */
public interface EmployeeStatisticsService {
    /**
     * 按照性别统计
     *
     * @param employees Employee 数组
     * @return 统计结果数组
     */
    Result[] pivotByGender(Employee[] employees);

    /**
     * 按照部门统计
     *
     * @param employees Employee 数组
     * @return 统计结果数组
     */
    Result[] pivotByDepartment(Employee[] employees);


    /**
     * 按照职位统计
     *
     * @param employees Employee 数组
     * @return 统计结果数组
     */
    Result[] pivotByJobTitle(Employee[] employees);

}
